package utils

import (
	"bytes"
	"text/template"
)

func Render(tpl string, data interface{}) string {
	var b bytes.Buffer
	t := template.Must(template.New("text").Parse(tpl))
	t.Execute(&b, &data)
	return b.String()
}
